# 使用amd64/python:3.9.6-alpine作为基础镜像
FROM amd64/python:3.9.6

# 设置维护者信息（可选）
<<<<<<< HEAD
LABEL maintainer="wxy:mingge1234567890@yeah.net"

# 更新Alpine Linux包并安装依赖

#RUN apk update && apk add --no-cache \
    #build-base \
    #python3-dev \
    #libc6-compat \
    #linux-headers \
    #gfortran \
    #&& rm -rf /var/cache/apk/*

# 安装Pandas和TensorFlow所需的pip包
RUN pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install tensorflow==2.11.0 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install scikit-learn==1.1.2 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install keras==2.11.0 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install cx-Oracle==8.3.0 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install DBUtils==1.2 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install chinesecalendar -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install Flask==2.2.2 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install lightgbm==3.3.5 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install pandas==1.5.0 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install scipy==1.9.1 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install numpy==1.23.3 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install Werkzeug==2.2.2 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install pymysql==1.0.2 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install SQLAlchemy==1.4.41 -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install dmPython==2.5.8 -i https://mirrors.aliyun.com/pypi/simple/

#RUN chmod -r 777 pythonflie

# 设置工作目录
WORKDIR /app

# 复制当前目录下的所有文件到工作目录（如果有的话）
ADD /pythonfile /app

#RUN export PATH=$PATH:/pythonflie

EXPOSE 5011
EXPOSE 5012
EXPOSE 5013
EXPOSE 5014

# 你可以指定要运行的Python脚本（如果有的话）
<<<<<<< HEAD
CMD ["python", "main.py"]
=======
CMD ["python", "forecast_wind_and_light-mysql_v1.3.py"]
>>>>>>> ce2d638 (20251014，新增dokcerfile文件，帮助各位进行环境配置)
